﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 手写IOC.Container
{
    public interface IMarsContainer
    {
        /// <summary>
        /// 
        /// 泛型约束，绑定类型关系
        /// </summary>
        /// <typeparam name="TFrom">泛型约束</typeparam>
        /// <typeparam name="TOut"></typeparam>
        void Register<TFrom, TOut>() where TOut : TFrom;
        TFrom Resolve<TFrom>();
    }
}
